﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Collections;
using System.Linq;
//using System.Xml.Linq;
using System.Threading;
using System.IO;

using CommonUtils;
using TConst = TERP.Constants;
using TError = TERP.Errors;


namespace TERP.Utils
{
	public partial class DProcessException
	{
		public static string ProcessException(
			Exception exc
			, string strErrorCode
			)
		{
			// ErrCarSv.Ser_MST_CustomerType_Delete_CusExis: Xoa CúType khi da co Cus
			if (exc.Message.Contains("The DELETE statement conflicted with the REFERENCE constraint") && exc.Message.Contains("table \"dbo.Ser_Customer\""))
			{ 
                //strErrorCode = TError.ErrITS.Ser_MST_CustomerType_Delete_CusExist;
            }

			return strErrorCode;
		}
	}
}
